import request from '@/utils/request'

// 查询业主合同列表
export function homeownersList(query) {
  return request({
    url: '/fang/common/homeownerslist',
    method: 'get',
    params: query
  })
}

// 文件上传接口
export function uploadFile(data) {
  return request({
    url: '/fang/common/file/upload',
    method: 'post',
    data: data
  })
}

// 查询房源列表
export function getHouseList(query) {
  return request({
    url: '/fang/common/houselist',
    method: 'get',
    params: query
  })
}

// 查询租客列表
export function getTenantList(query) {
  return request({
    url: '/fang/common/tenantlist',
    method: 'get',
    params: query
  })
}

// 查询有效业主列表
export function getEffectiveHomeownersList(query) {
  return request({
    url: '/fang/common/effective/homeowners',
    method: 'get',
    params: query
  })
}

// 查询有效租户列表
export function getEffectiveTenantList(query) {
  return request({
    url: '/fang/common/effective/tenant',
    method: 'get',
    params: query
  })
}

 
